"use strict";

module.exports = app => {
  const { STRING, INTEGER, BOOLEAN } = app.Sequelize;

  const TeleplayList = app.model.define(
    "teleplay_list",
    {
      id: { type: INTEGER, primaryKey: true, autoIncrement: true },
      tv_id: INTEGER(11),
      link: STRING(100),
      idx: INTEGER(4),
      play_name: STRING(100),
    },
    {
      timestamps: true,
      createdAt: "created_at",
      updatedAt: "updated_at",
      freezeTableName: true,
    }
  );

  return TeleplayList;
};
